<?php 
session_start();
require_once('Conection_DataBase.php');
mysql_select_db($database_jssue, $jssue);
$idid = $_SESSION['Carre'];
$idalumno = $_SESSION["COdeStudent"];
$idcurso = $_SESSION["codId"];
$Querry_recordSet = "select * from cllg_teacher_assign,cllg_teacher where cllg_teacher_assign.FK_COURSE = '$idcurso' and cllg_teacher_assign.FK_TEACHER = cllg_teacher.ID";
$recordset = mysql_query($Querry_recordSet, $jssue) or die(mysql_error());
$prueba=mysql_fetch_assoc($recordset);

$Querry_recordSet33 = "select * from cllg_courses_catalog where CODE = '$idcurso'";
$recordset33 = mysql_query($Querry_recordSet33, $jssue) or die(mysql_error());
$prueba33=mysql_fetch_assoc($recordset33);

$Querry_recordSet44 = "select * from cllg_student where ID = '$idalumno'";
$recordset44 = mysql_query($Querry_recordSet44, $jssue) or die(mysql_error());
$prueba44=mysql_fetch_assoc($recordset44);

$Querry_recordSet55 = "select * from cllg_student_assign,cllg_career where cllg_student_assign.ID = '$idid' and cllg_student_assign.FK_CAREER = cllg_career.ID";
$recordset55 = mysql_query($Querry_recordSet55, $jssue) or die(mysql_error());
$prueba55=mysql_fetch_assoc($recordset55);

$dia = date('d');
$mes = date('m');
$ano = date('Y');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
#header #logo {
	height: 90px;
	width: 100px;
	float: left;
}
#wrapper {
	border: 1px solid #000000;
	height: 430px;
	width: 700px;
}
#header #titulo {
	text-align: center;
	float: right;
	margin-right: 200px;
	font-size: 18px;
	margin-top: 5px;
}
#header {
	width: 700px;
	height: 100px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #333333;
}
#datos #datosTeacher {
	width: 400px;
	float: left;
	height: 110px;
}
#datos #datosEval {
	width: 300px;
	float: right;
	height: 110px;
}
#datos {
	width: 700px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #333333;
	height: 110px;
}
#estudiante {
	width: 700px;
	height: 110px;
	float: left;
	clear: both;
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color: #000000;
	border-bottom-color: #000000;
}
#wrapper #estudiante #observaciones #texto {
	font-size:9px;
	height: 80px;
	width: 190px;
	word-wrap: break-word;
	border: 1px solid #000000;
}
#firmas {
	height: 100px;
	width: 700px;
	float: left;
}
#estudiante #datosgen {
	width: 250px;
	float: left;
}
#estudiante #punteo {
	width: 250px;
	float: left;
	height: 100px;
}
#firmas #firma {
	width: 400px;
	float: left;
}
#firmas #solvente {
	width: 240px;
	float: right;
	height: 80px;
}
#estudiante #observaciones {
	width: 200px;
	float: right;
	height: 100px;
}
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
#no {
	position:absolute;
	left:629px;
	top:18px;
	width:77px;
	height:19px;
	z-index:1;
}
-->
</style>
<script type="text/javascript" src="../../../js/prototype.js">

</script>

</head>

<body>
<div id="no">
  <form id="form1" name="form1" method="post" action="">
    <input type="button" name="printer" id="printer" value="Imprimir" onclick="$('no').hide();window.print();$('no').show();" />
  </form>
</div>
<div id="wrapper">
<div id="header">
  <div id="logo"><img src="logocinde.jpg" alt="logo" width="100" height="90" /></div>
    <div id="titulo">Centro Internacional de Desarrollo Empresarial<br />
    S&nbsp;O&nbsp;L&nbsp;V&nbsp;E&nbsp;N&nbsp;C&nbsp;I&nbsp;A</div>
</div>

<div id="datos"><div id="datosTeacher">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    
    <tr>
      <td>Diplomado Universitario en: <?PHP echo $prueba55['NAME'];?></td>
    </tr>
    <tr>
      <td>Catedr&aacute;tico(a): <?PHP echo $prueba['FIRST_NAME'];?>&nbsp;<?PHP echo $prueba['LAST_NAME'];?></td>
    </tr>
    <tr>
      <td>Curso: <?PHP echo $prueba33['NAME'];?></td>
    </tr>
    <tr>
      <td>Fecha: <?php echo $dia." del ".$mes." del ".$ano;?> </td>
    </tr>
    <tr>
      <td>Ciclo: <?PHP echo $prueba55['FK_CYCLE'];?></td>
    </tr>
  </table>
</div>
<div id="datosEval">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="100%" border="0" cellspacing="2" cellpadding="0">
        <tr>
          <td>Tipo Evaluacion</td>
        </tr>
        <tr>
          <td align="center"><table width="75%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
              <tr>
                <td width="63%">1er Parcial</td>
                <td width="37%" bordercolor="#000000">&nbsp;</td>
              </tr>
              <tr>
                <td>Extraordinario</td>
                <td bordercolor="#000000">&nbsp;</td>
              </tr>
              <tr>
                <td>Final</td>
                <td bordercolor="#000000">&nbsp;</td>
              </tr>
          </table></td>
        </tr>
      </table></td>
      <td><table width="100%" border="0" cellspacing="2" cellpadding="0">
        <tr>
          <td>Plan de Estudio</td>
        </tr>
        <tr>
          <td align="center"><table width="68%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
              <tr>
                <td width="57%">Lunes</td>
                <td width="43%">&nbsp;</td>
              </tr>
              <tr>
                <td>Martes</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Miercoles</td>
                <td>&nbsp;</td>
              </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
</div>
</div>

<div id="estudiante">
  <div id="datosgen">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th scope="col">Datos Estudiante</th>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="26%">Carnet</td>
            <td width="74%"><?PHP echo $prueba44['ID'];?></td>
          </tr>
          <tr>
            <td>Nombre</td>
            <td><?PHP echo $prueba44['FIRST_NAME'];?>&nbsp;<?PHP echo $prueba44['SECOND_NAME'];?>&nbsp;<?PHP echo $prueba44['LAST_NAME'];?></td>
          </tr>
          <tr>
            <td colspan="2"><p>&nbsp;</p>
              <p>&nbsp;</p></td>
            </tr>
          
        </table></td>
      </tr>
    </table>
  </div>
  
  <div id="punteo">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th scope="col">Datos Punteo</th>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
              <tr>
                <td colspan="2">Evaluacion Final </td>
              </tr>
              <tr>
                <td width="46%">Zona</td>
                <td width="54%">&nbsp;</td>
              </tr>
              <tr>
                <td>Examen</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2">Total</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
  </div>
  
  <div id="observaciones">
    <table width="200" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th scope="col">Observaciones</th>
      </tr>
      <tr>
        <td align="center" valign="top">
        <div id="texto"><?=$_GET['observ']?></div>
        </td>
       
      </tr>
    </table>
  </div>
</div>


<div id="firmas">
  <div id="firma">
    <table width="70%" border="0" cellspacing="3" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><hr /></td>
      </tr>
      <tr>
        <td>Firma del Estudiante</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><hr /></td>
      </tr>
      <tr>
        <td>Firma y Sello</td>
      </tr>
    </table>
  </div>
  <div id="solvente">
    <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
      <tr>
        <td height="41" align="center" bgcolor="#CCCCCC">SOLVENTE</td>
      </tr>
    </table>
  </div>
</div>
</div>
</body>
</html>
